package com.ruoyi.web.controller.shop.shop.mapper;

import com.ruoyi.web.controller.shop.shop.domain.ShopShop;
import com.ruoyi.web.controller.shop.shop.dto.ShopDto;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * 店铺信息Mapper接口
 * 
 * @author ruoyi
 * @date 2020-10-15
 */
public interface ShopShopMapper 
{
    /**
     * 查询店铺信息
     * 
     * @param id 店铺信息ID
     * @return 店铺信息
     */
    public ShopShop selectShopShopById(String id);

    /**
     * 查询店铺信息列表
     * 
     * @param shopShop 店铺信息
     * @return 店铺信息集合
     */
    public List<ShopShop> selectShopShopList(ShopShop shopShop);

    /**
     * 新增店铺信息
     * 
     * @param shopShop 店铺信息
     * @return 结果
     */
    public int insertShopShop(ShopShop shopShop);

    /**
     * 修改店铺信息
     * 
     * @param shopShop 店铺信息
     * @return 结果
     */
    public int updateShopShop(ShopShop shopShop);

    /**
     * 删除店铺信息
     * 
     * @param id 店铺信息ID
     * @return 结果
     */
    public int deleteShopShopById(String id);

    /**
     * 批量删除店铺信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteShopShopByIds(String[] ids);

	List<ShopDto> findShopListByMap(HashMap<String, Object> map);

	List<ShopShop> findListByUid(@Param("uid") Long uid, @Param("lng") Double lng, @Param("lat") Double lat);

	List findSonIds(String parentId);
}
